import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app.js'
import user from './modules/user.js'

Vue.use(Vuex)

const store = new Vuex.Store({
  modules: {
    app,
    user
  }
})

store.replaceState(Object.assign({}, store.state, {
  configuration: {
    /* eslint-disable no-undef */
    systemManage: SYSTEM_MANAGE_VUE_CONFIG
  }
}))

export default store
